package com.ruoyi.crm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 销售报表对象 report_sales
 *
 * @author ruoyi
 * @date 2021-09-01
 */
public class ReportSales extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 业务员 */
    @Excel(name = "业务员")
    private String salesman;

    /** 收款编号 */
    @Excel(name = "收款编号")
    private String collectionNo;

    /** 收款日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收款日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date collectionDate;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customerName;

    /** 源单 */
    @Excel(name = "源单")
    private String source;

    /** 源单金额 */
    @Excel(name = "源单金额")
    private Long sourceAc;

    /** 源单已收金额 */
    @Excel(name = "源单已收金额")
    private Long sourceAcy;

    /** 费用合计 */
    @Excel(name = "费用合计")
    private Long expenseTotal;

    /** 销售业绩 */
    @Excel(name = "销售业绩")
    private Long salesPerform;

    /** 产品成本合计 */
    @Excel(name = "产品成本合计")
    private Long productCost;

    /** 佣金合计 */
    @Excel(name = "佣金合计")
    private Long commissionCost;

    /** 目标额 */
    @Excel(name = "目标额")
    private Long targetAc;

    /** 目标完成率 */
    @Excel(name = "目标完成率")
    private Long targetRate;

    /** 提成比例 */
    @Excel(name = "提成比例")
    private Long percentRate;

    /** 业绩提成 */
    @Excel(name = "业绩提成")
    private Long performAc;

    /** 本次收款金额 */
    @Excel(name = "本次收款金额")
    private Long cuCollectionAc;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setSalesman(String salesman)
    {
        this.salesman = salesman;
    }

    public String getSalesman()
    {
        return salesman;
    }
    public void setCollectionNo(String collectionNo)
    {
        this.collectionNo = collectionNo;
    }

    public String getCollectionNo()
    {
        return collectionNo;
    }
    public void setCollectionDate(Date collectionDate)
    {
        this.collectionDate = collectionDate;
    }

    public Date getCollectionDate()
    {
        return collectionDate;
    }
    public void setCustomerName(String customerName)
    {
        this.customerName = customerName;
    }

    public String getCustomerName()
    {
        return customerName;
    }
    public void setSource(String source)
    {
        this.source = source;
    }

    public String getSource()
    {
        return source;
    }
    public void setSourceAc(Long sourceAc)
    {
        this.sourceAc = sourceAc;
    }

    public Long getSourceAc()
    {
        return sourceAc;
    }
    public void setSourceAcy(Long sourceAcy)
    {
        this.sourceAcy = sourceAcy;
    }

    public Long getSourceAcy()
    {
        return sourceAcy;
    }
    public void setExpenseTotal(Long expenseTotal)
    {
        this.expenseTotal = expenseTotal;
    }

    public Long getExpenseTotal()
    {
        return expenseTotal;
    }
    public void setSalesPerform(Long salesPerform)
    {
        this.salesPerform = salesPerform;
    }

    public Long getSalesPerform()
    {
        return salesPerform;
    }
    public void setProductCost(Long productCost)
    {
        this.productCost = productCost;
    }

    public Long getProductCost()
    {
        return productCost;
    }
    public void setCommissionCost(Long commissionCost)
    {
        this.commissionCost = commissionCost;
    }

    public Long getCommissionCost()
    {
        return commissionCost;
    }
    public void setTargetAc(Long targetAc)
    {
        this.targetAc = targetAc;
    }

    public Long getTargetAc()
    {
        return targetAc;
    }
    public void setTargetRate(Long targetRate)
    {
        this.targetRate = targetRate;
    }

    public Long getTargetRate()
    {
        return targetRate;
    }
    public void setPercentRate(Long percentRate)
    {
        this.percentRate = percentRate;
    }

    public Long getPercentRate()
    {
        return percentRate;
    }
    public void setPerformAc(Long performAc)
    {
        this.performAc = performAc;
    }

    public Long getPerformAc()
    {
        return performAc;
    }
    public void setCuCollectionAc(Long cuCollectionAc)
    {
        this.cuCollectionAc = cuCollectionAc;
    }

    public Long getCuCollectionAc()
    {
        return cuCollectionAc;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("salesman", getSalesman())
                .append("collectionNo", getCollectionNo())
                .append("collectionDate", getCollectionDate())
                .append("customerName", getCustomerName())
                .append("source", getSource())
                .append("sourceAc", getSourceAc())
                .append("sourceAcy", getSourceAcy())
                .append("expenseTotal", getExpenseTotal())
                .append("salesPerform", getSalesPerform())
                .append("productCost", getProductCost())
                .append("commissionCost", getCommissionCost())
                .append("targetAc", getTargetAc())
                .append("targetRate", getTargetRate())
                .append("percentRate", getPercentRate())
                .append("performAc", getPerformAc())
                .append("cuCollectionAc", getCuCollectionAc())
                .toString();
    }
}